﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using USpell.Models;

namespace USpell.ViewModels
{
    /// <summary>
    /// 我要拼的viewmodel界面驱动服务
    /// </summary>
    public class VMGuessTo : ViewModelBase
    {

        private ObservableCollection<Guess> mySpell;

        public ObservableCollection<Guess> MySpell
        {
            get { return mySpell; }
            set
            {
                mySpell = value;
                RaisePropertyChanging("MySpell");
            }
        }

        public void GetAllGuessTo()
        {
             var re = USpell.API.Core.GetAllGuessToFriend();
            if (re != null)
            {
                MySpell = new ObservableCollection<Guess>(re);
            }
        }
        
    }
}
